package cn.wolfcode.business.mapper;

import cn.wolfcode.business.domain.BusServiceItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
* 服务项Mapper
* */
public interface BusServiceItemMapper {
    /*
    * 根据ID查询服务项对象
    * */
    BusServiceItem selectBusServiceItemById(Long id);

    /*
    * 查询服务项列表
    * */
    List<BusServiceItem> selectBusServiceItemList(BusServiceItem busServiceItem);

    /*
    * 插入服务项信息
    * */
    int insertBusServiceItem(BusServiceItem busServiceItem);

    /*
     * 更新服务项信息
     * */
    int updateBusServiceItem(BusServiceItem busServiceItem);

    /*
     * 删除服务项信息
     * */
    int deleteBusServiceById(Long id);

    //根据服务项id上下架
    int changeSaleStatus(@Param("id") Long id, @Param("salestatus") Integer salestatusOn);

    //根据服务项id修改审批状态
    int changeAuditStatus(@Param("serviceItemId") Long serviceItemId, @Param("auditStatus") Integer auditstatusAuditing);
}
